#include <stdio.h> 
int main()
{
	float a,b,c;
	scanf("%f,%f,%f",&a,&b,&c);
	if(a>b)
	{
		c = a ;
		a = b ;
		b = c ;
		
	}
	printf("%5.2f,%5.2f\n",a,b);
	return 0;
}
